<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: install_step_1.php 364 2013-12-04 10:47:33Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 364 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-12-04 10:47:33 +0000 (Wed, 04 Dec 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

if(!defined('VALID_INSTALLER'))
	header('Location: ../../');

if (isset($_GET['action']) && $_GET['action'] == 'process') {
	$error = false;
	
	if(defined('DB_SERVER') && defined('DB_DATABASE') && DB_DATABASE !='') {
		$db = ADONewConnection(DB_TYPE);
		@$db->Connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE);
		
		if (!empty($db->_errorMsg)) {
			$error = true;		
			
		} else {
			
			require(DIR_FS_INC.'inc.generate_salt.php');
			$salt = generate_salt();
			
			$db->Execute("SET NAMES 'utf8'");
			$db->Execute("SET CHARACTER_SET_CLIENT = utf8");
			$db->Execute("SET CHARACTER_SET_RESULTS = utf8");
			
			$prefix = str_replace('-', '_', $_POST['DB_PREFIX']);
			
			$file_contents = '<?php'."\n".
							'/* -------------------------------------------------------------------------------------'."\n".
							'* 	SEO:mercari by Siekiera Media - siekiera-media.de'."\n".
							'* 	http://www.seo-mercari.de'."\n".
							'*'."\n".
							'* 	Copyright © since 2011 SEO:mercari'."\n".
							'* --------------------------------------------------------------------------------------'."\n".
							'* 	based on:'."\n".
							'* 	© 2000-2001 The Exchange Project  (earlier name of osCommerce)'."\n".
							'* 	© 2002-2003 osCommerce - www.oscommerce.com'."\n".
							'* 	© 2003     nextcommerce - www.nextcommerce.org'."\n".
							'* 	© 2005     xt:Commerce - www.xt-commerce.com'."\n".
							'*'."\n".
							'* 	Released under the GNU General Public License'."\n".
							'* ----------------------------------------------------------------------------------- */'."\n"."\n".
							'# DIR_FS_* = absoluter Dateipfad'."\n".
							'# DIR_WS_* = relativer Dateipfad'."\n\n".
							'define(\'HTTP_SERVER\', \''.$_POST['HTTP_SERVER'].'\'); '."\n".
							'define(\'HTTPS_SERVER\', \''.$_POST['HTTPS_SERVER'].'\'); '."\n".
							'define(\'ENABLE_SSL\', '.(($_POST['ENABLE_SSL'] == 'true') ? 'true' : 'false').'); '."\n".
							'define(\'DIR_WS_CATALOG\', \''.$_POST['DIR_WS_CATALOG'].'\'); '."\n".
							'define(\'DIR_FS_DOCUMENT_ROOT\', \''.$_SERVER['DOCUMENT_ROOT'].$local_install_path.'\');'."\n".
							'define(\'DIR_FS_CATALOG\', \''.$_SERVER['DOCUMENT_ROOT'].$local_install_path.'\');'."\n".
							'define(\'MERCARI_INSTALLED\', true);'."\n".
							'define(\'DIR_WS_IMAGES\', \'images/\');'."\n".
							'define(\'DIR_WS_CATALOG_MOVIES\', DIR_WS_IMAGES.\'products_movies/\');'."\n".
  						'define(\'DIR_WS_CATEGORIES_IMAGES\', DIR_WS_IMAGES.\'categories/\');'."\n".
  						'define(\'DIR_WS_PRODUCTS_IMAGES\', DIR_WS_IMAGES.\'product_images/\');'."\n".
  						'define(\'DIR_WS_ORIGINAL_IMAGES\', DIR_WS_IMAGES.\'product_images/original_images/\');'."\n".
							'define(\'DIR_WS_ICON_IMAGES\', DIR_WS_IMAGES.\'product_images/icon_images/\');'."\n".
							'define(\'DIR_WS_THUMBNAIL_IMAGES\', DIR_WS_IMAGES.\'product_images/thumbnail_images/\');'."\n".
							'define(\'DIR_WS_INFO_IMAGES\', DIR_WS_IMAGES.\'product_images/info_images/\');'."\n".
							'define(\'DIR_WS_POPUP_IMAGES\', DIR_WS_IMAGES.\'product_images/popup_images/\');'."\n".
							'define(\'DIR_WS_ICONS\', DIR_WS_IMAGES.\'icons/\');'."\n".
							'define(\'DIR_WS_INCLUDES\',DIR_FS_DOCUMENT_ROOT. \'includes/\');'."\n".
							'define(\'DIR_WS_FUNCTIONS\', DIR_WS_INCLUDES.\'functions/\');'."\n".
							'define(\'DIR_WS_CLASSES\', DIR_WS_INCLUDES.\'classes/\');'."\n".
							'define(\'DIR_WS_MODULES\', DIR_WS_INCLUDES.\'modules/\');'."\n".
							'define(\'DIR_WS_LANGUAGES\', DIR_FS_CATALOG.\'lang/\');'."\n".
							'define(\'DIR_WS_DOWNLOAD_PUBLIC\', DIR_WS_CATALOG.\'pub/\');'."\n".
							'define(\'DIR_FS_DOWNLOAD\', DIR_FS_CATALOG.\'download/\');'."\n".
							'define(\'DIR_FS_DOWNLOAD_PUBLIC\', DIR_FS_CATALOG.\'pub/\');'."\n".
							'define(\'DIR_FS_INC\', DIR_FS_CATALOG.\'inc/\');'."\n".
							'define(\'SALT_KEY\', \''.$salt.'\');'."\n".
							''."\n".
							'define(\'DB_SERVER\', \''.$_POST['DB_SERVER'].'\');'."\n".
							'define(\'DB_SERVER_USERNAME\', \''.$_POST['DB_SERVER_USERNAME'].'\');'."\n".
							'define(\'DB_SERVER_PASSWORD\', \''.$_POST['DB_SERVER_PASSWORD']. '\');'."\n".
							'define(\'DB_DATABASE\', \''.$_POST['DB_DATABASE']. '\');'."\n".
							'define(\'DB_PREFIX\', \''.$prefix. '\');'."\n".
							'define(\'DB_TYPE\', \''.$_POST['DB_TYPE']. '\');'."\n".
							'define(\'USE_PCONNECT\', \''.(($_POST['USE_PCONNECT'] == 'true') ? 'true' : 'false').'\');'."\n".
							'define(\'STORE_SESSIONS\', \''.(($_POST['STORE_SESSIONS'] == 'files') ? '' : 'mysql').'\');'."\n".
							''."\n".
							'define(\'MEMCACHE_USE\', \'false\');'."\n".
							'define(\'MEMCACHE_HOSTS\', \'127.0.0.1\');'."\n".
							'define(\'MEMCACHE_PORT\', 11211);'."\n".
							'define(\'MEMCACHE_COMPRESS\', false);';

						    $fp = fopen(DIR_FS_CATALOG.'includes/configure.php', 'w');
						    fputs($fp, $file_contents);
						    fclose($fp);
	
						    $file_contents = '<?php'."\n".
							'/* -------------------------------------------------------------------------------------'."\n".
							'* 	SEO:mercari by Siekiera Media - siekiera-media.de'."\n".
							'* 	http://www.seo-mercari.de'."\n".
							'*'."\n".
							'* 	Copyright © since 2011 SEO:mercari'."\n".
							'* --------------------------------------------------------------------------------------'."\n".
							'* 	based on:'."\n".
							'* 	© 2000-2001 The Exchange Project  (earlier name of osCommerce)'."\n".
							'* 	© 2002-2003 osCommerce - www.oscommerce.com'."\n".
							'* 	© 2003     nextcommerce - www.nextcommerce.org'."\n".
							'* 	© 2005     xt:Commerce - www.xt-commerce.com'."\n".
							'*'."\n".
							'* 	Released under the GNU General Public License'."\n".
							'* ----------------------------------------------------------------------------------- */'."\n"
		                    ."\n".
							'# DIR_FS_* = absoluter Dateipfad'."\n".
							'# DIR_WS_* = relativer Dateipfad'."\n\n".
							'define(\'MERCARI_INSTALLED\', true);'."\n".
							'define(\'HTTP_SERVER\', \''.$_POST['HTTP_SERVER'].'\');'."\n".
							'define(\'HTTP_CATALOG_SERVER\', \''.$_POST['HTTP_SERVER'].'\');'."\n".
							'define(\'HTTPS_CATALOG_SERVER\', \''.$_POST['HTTPS_SERVER'].'\');'."\n".
							'define(\'ENABLE_SSL_CATALOG\', \''.(($_POST['ENABLE_SSL'] == 'true') ? 'true' : 'false').'\'); '."\n".
							'define(\'DIR_FS_DOCUMENT_ROOT\', \''.$_SERVER['DOCUMENT_ROOT'].$local_install_path.'\'); '."\n".
							'define(\'DIR_WS_ADMIN\', \''.$_POST['DIR_WS_CATALOG'].'admin/'.'\');'."\n".
							'define(\'DIR_FS_ADMIN\', \''.$_SERVER['DOCUMENT_ROOT'].$local_install_path.'admin/'.'\'); '."\n".
							'define(\'DIR_WS_CATALOG\', \''.$_POST['DIR_WS_CATALOG'].'\');'."\n".
							'define(\'DIR_FS_CATALOG\', \''.$_SERVER['DOCUMENT_ROOT'].$local_install_path.'\');'."\n".
							'define(\'DIR_WS_IMAGES\', \'images/\');'."\n".
							'define(\'DIR_FS_CATALOG_IMAGES\', DIR_FS_CATALOG.\'images/\');'."\n".
							'define(\'DIR_FS_DOWNLOAD\', DIR_FS_CATALOG.\'download/\');'."\n".
							'define(\'DIR_FS_CATALOG_MOVIES\', DIR_FS_CATALOG_IMAGES.\'products_movies/\');'."\n".
							'define(\'DIR_FS_CATALOG_CATEGORIES_IMAGES\', DIR_FS_CATALOG_IMAGES.\'categories/\');'."\n".
							'define(\'DIR_FS_CATALOG_PRODUCTS_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/\');'."\n".
  						'define(\'DIR_FS_CATALOG_ORIGINAL_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/original_images/\');'."\n".
							'define(\'DIR_FS_CATALOG_ICON_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/icon_images/\');'."\n".
							'define(\'DIR_FS_CATALOG_THUMBNAIL_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/thumbnail_images/\');'."\n".
							'define(\'DIR_FS_CATALOG_INFO_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/info_images/\');'."\n".
							'define(\'DIR_FS_CATALOG_POPUP_IMAGES\', DIR_FS_CATALOG_IMAGES.\'product_images/popup_images/\');'."\n".
							'define(\'DIR_FS_CATALOG_MODULES\', DIR_FS_CATALOG.\'includes/modules/\');'."\n".
							'define(\'DIR_FS_BACKUP\', DIR_FS_ADMIN.\'backups/\');'."\n".
							'define(\'DIR_FS_INC\', DIR_FS_CATALOG.\'inc/\');'."\n".
							'define(\'DIR_FS_LANGUAGES\', DIR_FS_CATALOG. \'lang/\');'."\n".
							'define(\'DIR_WS_ICONS\', DIR_WS_IMAGES.\'icons/\');'."\n".
							'define(\'DIR_WS_CATALOG_IMAGES\', DIR_WS_CATALOG.\'images/\');'."\n".
							'define(\'DIR_WS_CATALOG_MOVIES\', DIR_WS_CATALOG_IMAGES.\'products_movies/\');'."\n".
							'define(\'DIR_WS_CATALOG_ORIGINAL_IMAGES\', DIR_WS_CATALOG_IMAGES.\'product_images/original_images/\');'."\n".
							'define(\'DIR_WS_CATALOG_ICON_IMAGES\', DIR_WS_CATALOG_IMAGES.\'product_images/icon_images/\');'."\n".
							'define(\'DIR_WS_CATALOG_THUMBNAIL_IMAGES\', DIR_WS_CATALOG_IMAGES.\'product_images/thumbnail_images/\');'."\n".
							'define(\'DIR_WS_CATALOG_INFO_IMAGES\', DIR_WS_CATALOG_IMAGES.\'product_images/info_images/\');'."\n".
							'define(\'DIR_WS_CATALOG_POPUP_IMAGES\', DIR_WS_CATALOG_IMAGES.\'product_images/popup_images/\');'."\n".
							'define(\'DIR_WS_INCLUDES\', \'includes/\');'."\n".
							'define(\'DIR_WS_BOXES\', DIR_WS_INCLUDES.\'boxes/\');'."\n".
							'define(\'DIR_WS_FUNCTIONS\', DIR_WS_INCLUDES.\'functions/\');'."\n".
							'define(\'DIR_WS_CLASSES\', DIR_WS_INCLUDES.\'classes/\');'."\n".
							'define(\'DIR_WS_MODULES\', DIR_WS_INCLUDES.\'modules/\');'."\n".
							'define(\'DIR_WS_LANGUAGES\', DIR_WS_CATALOG. \'lang/\');'."\n".
							'define(\'SALT_KEY\', \''.$salt.'\');'."\n".
							''."\n".
							'define(\'DB_SERVER\', \''.$_POST['DB_SERVER'].'\');'."\n".
							'define(\'DB_SERVER_USERNAME\', \''.$_POST['DB_SERVER_USERNAME'].'\');'."\n".
							'define(\'DB_SERVER_PASSWORD\', \''.$_POST['DB_SERVER_PASSWORD']. '\');'."\n".
							'define(\'DB_DATABASE\', \''.$_POST['DB_DATABASE']. '\');'."\n".
							'define(\'DB_PREFIX\', \''.$prefix. '\');'."\n".
							'define(\'DB_TYPE\', \''.$_POST['DB_TYPE']. '\');'."\n".
							'define(\'USE_PCONNECT\', \''.(($_POST['USE_PCONNECT'] == 'true') ? 'true' : 'false').'\');'."\n".
							'define(\'STORE_SESSIONS\', \''.(($_POST['STORE_SESSIONS'] == 'files') ? '' : 'mysql').'\');'."\n".
							''."\n".
							'define(\'MEMCACHE_USE\', \'false\');'."\n".
							'define(\'MEMCACHE_HOSTS\', \'127.0.0.1\');'."\n".
							'define(\'MEMCACHE_PORT\', 11211);'."\n".
							'define(\'MEMCACHE_COMPRESS\', false);';
							
							$fp = fopen(DIR_FS_CATALOG.'admin/includes/configure.php', 'w');
							fputs($fp, $file_contents);
							fclose($fp);
			$_SESSION['valid_install'] = time();
			redirect('index.php?step=2&sql=1');
		}
	} else
		$error = true;
}

if (!$script_filename = str_replace('\\', '/', getenv('PATH_TRANSLATED')))
	$script_filename = getenv('SCRIPT_FILENAME');

$script_filename = str_replace('//', '/', $script_filename);

if (!$request_uri = getenv('REQUEST_URI')) {
	if (!$request_uri = getenv('PATH_INFO'))
	  $request_uri = getenv('SCRIPT_NAME');

	if (getenv('QUERY_STRING')) 
		$request_uri .= '?'.getenv('QUERY_STRING');
}

$dir_fs_www_root_array = explode('/', dirname($script_filename));
$dir_fs_www_root = array();
for ($i=0; $i<sizeof($dir_fs_www_root_array)-2; $i++)
	$dir_fs_www_root[] = $dir_fs_www_root_array[$i];

$dir_fs_www_root = implode('/', $dir_fs_www_root);

$dir_ws_www_root_array = explode('/', dirname($request_uri));
$dir_ws_www_root = array();
for ($i=0; $i<sizeof($dir_ws_www_root_array)-1; $i++)
	$dir_ws_www_root[] = $dir_ws_www_root_array[$i];

$dir_ws_www_root = implode('/', $dir_ws_www_root);

include('includes/metatag.php');
?>
<title>SEO:mercari Installation - Schritt 1</title>
</head>
<body>
<script type="text/javascript" src="includes/javascript/tooltip.js" encode="UTF-8"></script>
<?php include('includes/header.php'); ?>
<div id="wrapper">
	<div id="inner_wrapper">
		<form name="install" method="post" action="index.php?step=1&action=process" autocomplete="off">
			<table class="outerTable" width="100%" cellpadding="4">
				<tr>
					<td valign="top">
						<table class="table_pageHeading" border="0" width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td class="pageHeading">
									<h1 class="schatten">Schritt 1</h1>
								</td>
							</tr>
						</table>
						<table border="0" width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td>
									<?php echo TEXT_WELCOME_STEP1; ?><br />
									<h2 class="schatten"><?php echo TITLE_CUSTOM_SETTINGS; ?></h2>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
							<tr>
								<td width="100%" align="left" valign="middle" nowrap="nowrap">
									<?php echo draw_checkbox_field_installer('install[]', 'database', true);?> <b><?php echo TEXT_IMPORT_DB; ?></b>
									<?php echo ' <span'.mouseOverJS(TEXT_IMPORT_DB,TEXT_IMPORT_DB_LONG).'><img src="images/icons/information-balloon.png" alt="" /></span>'; ?>
								</td>
							</tr>
						</table>
						<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
							<tr>
								<td width="100%" valign="middle"  nowrap="nowrap">
									<?php echo draw_checkbox_field_installer('install[]', 'configure', true); ?> <b><?php echo TEXT_AUTOMATIC; ?></b>
									<?php echo ' <span'.mouseOverJS(TEXT_AUTOMATIC,TEXT_AUTOMATIC_LONG).'><img src="images/icons/information-balloon.png" alt="" /></span>'; ?>
								</td>
							</tr>
						</table>
						<h2 class="schatten"><?php echo TITLE_DATABASE_SETTINGS; ?></h2>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<?php if(!empty($db->_errorMsg)) { ?>
							<fieldset class="installer red border_radius_4">
								<legend><strong><span style="color:#b20000"><?php echo TEXT_CONNECTION_ERROR; ?></span></strong></legend>
		      					<p>Meldung des Datenbank-Servers: <i><b><?php echo $db->_errorMsg; ?></b></i></p>
								<p><?php echo TEXT_DB_ERROR_1; ?></p>
								<p><?php echo TEXT_DB_ERROR_2; ?></p>
							</fieldset>
						<?php } ?>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_DATABASE_SERVER; ?></b>
	    						</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('DB_SERVER', 'localhost'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_DATABASE_SERVER,TEXT_DATABASE_SERVER_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_DATABASE; ?></b>
			                	</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('DB_DATABASE'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_DATABASE,TEXT_DATABASE_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_DATABASE_PREFIX; ?></b>
			                	</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('DB_PREFIX', 'mercari_'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_DB_PREFIX,TEXT_DB_PREFIX_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_DATABASE_TYPE; ?></b>
			                	</td>
	    						<td valign="middle">
	    							<SELECT name="DB_TYPE">
	    								<option value="mysql" selected>mysql</option>
	    								<option value="mysqli">mysqli</option>
	    								<option value="mssql">mssql</option>
	    								<option value="access">access</option>
	    								<option value="postgres">postgres</option>
	    								<option value="pdo">postrgres</option>
	    								<option value="sqllite">sqllite</option>
	    								<option value="odbc">odbc</option>
	    								<option value="oracle">oracle</option>
	    								<option value="ado">ado</option>
	    								<option value="firebird">firebird</option>
	    							</select>
	    							<?php echo ' <span'.mouseOverJS(TEXT_DATABASE_TYPE,TEXT_DATABASE_TYPE_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_USERNAME; ?></b>
			                	</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('DB_SERVER_USERNAME'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_USERNAME,TEXT_USERNAME_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td width="150" valign="middle">
	    							<b><?php echo TEXT_PASSWORD; ?></b>
			                	</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('DB_SERVER_PASSWORD','','password','id="server_password"'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_PASSWORD,TEXT_PASSWORD_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					</tr>
	    				</table>
	    				<h2 class="schatten"><?php echo TITLE_WEBSERVER_SETTINGS; ?></h2>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td valign="top">
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td valign="middle" width="220">
	    							<b><?php echo TEXT_HTTP; ?></b>
	    						</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('HTTP_SERVER', 'http://'.getenv('HTTP_HOST'),'text','size="40"'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_HTTP,TEXT_HTTP_LONG).'>
	    								<img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					<tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td valign="middle" width="220">
	    						    <b><?php echo TEXT_HTTPS; ?></b>
	    						</td>
	    						<td valign="middle">
	    							<?php echo draw_input_field_installer('HTTPS_SERVER', 'https://' . getenv('HTTP_HOST'),'text','size="40"'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_HTTPS,TEXT_HTTPS_LONG).'>
	    						    <img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					<tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
	    					<tr>
	    						<td valign="middle" width="220">
	    						    <b><?php echo TEXT_SSL; ?></b>
	    						</td>
	    						<td valign="middle">
	    							<?php echo draw_checkbox_field_installer('ENABLE_SSL', 'true'); ?>
	    							<?php echo ' <span'.mouseOverJS(TEXT_SSL,TEXT_SSL_LONG).'>
	    						    <img src="images/icons/information-balloon.png" alt="" />
	    							</span>'; ?>
	    						</td>
	    					<tr>
	    				</table>
	    				<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
							<tr>
								<td valign="middle" width="220">
								    <b><?php echo TEXT_PERSIST; ?></b>
								</td>
								<td valign="middle">
									<?php echo draw_checkbox_field_installer('USE_PCONNECT', 'true');?>
									<?php echo ' <span'.mouseOverJS(TEXT_PERSIST,TEXT_PERSIST_LONG).'>
								    <img src="images/icons/information-balloon.png" alt="" />
									</span>';?>
								</td>
							<tr>
						</table>
						<table cellpadding="8" cellspacing="8" class="table_input" width="100%">
							<tr>
								<td valign="middle" width="220">
								    <b><?php echo TEXT_SESS_FILE; ?></b>
								</td>
								<td valign="middle">
									<?php echo draw_radio_field_installer('STORE_SESSIONS', 'files', true);?>
									<?php echo ' <span'.mouseOverJS(TEXT_SESS_FILE,TEXT_SESS_LONG).'>
								    <img src="images/icons/information-balloon.png" alt="" />
									</span>';?>
								</td>
							</tr>
							<tr>
								<td valign="middle" width="220">
								    <b><?php echo TEXT_SESS_DB; ?></b>
								</td>
								<td valign="middle">
									<?php echo draw_radio_field_installer('STORE_SESSIONS', 'mysql', true);?>
									<?php echo ' <span'.mouseOverJS(TEXT_SESS_DB,TEXT_SESS_LONG).'>
								    <img src="images/icons/information-balloon.png" alt="" />
									</span>';?>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="columnRight" valign="top">
						<table border="0" width="100%" cellspacing="8" cellpadding="8">
							<tr>
								<td align="center">
									<a class="button" href="index.php">
										Abbruch
									</a>
								</td>
								<td align="center">
									<button type="submit">
										<span>weiter zu Schritt 2</span>
									</button>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<?php
				echo draw_hidden_field_installer('DIR_WS_ADMIN', $dir_ws_www_root.'/admin/').
					draw_hidden_field_installer('DIR_WS_CATALOG', $dir_ws_www_root.'/').
					draw_hidden_field_installer('DIR_FS_CATALOG', $local_install_path).
					draw_hidden_field_installer('DIR_FS_DOCUMENT_ROOT', $dir_fs_www_root).
					draw_hidden_field_installer('DIR_FS_ADMIN', $local_install_path.'admin/');
			?>
		</form>
	</div>
</div>
<?php
	include('includes/footer.php');
?>
</body>
</html>